﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace Geometry2D.Tracker
{
    public class trackRecord
    {
        public int Number { get; set; }
        public string ActionType { get; set; }
        public string FigureActionType { get; set; }
        public string FigureType { get; set; }
        public string FigureName { get; set; }
        public string Effect { get; set; }
    }

    public class TrackList
    {
        private List<trackRecord> mList;
        public List<trackRecord> List
        {
            get { return mList; }
            set { mList = value; }
        }

        public TrackList()
        {
            this.mList = new List<trackRecord>();
        }

        public event EventHandler mListChanged;

        public void Add(trackRecord record)
        {
            this.mList.Add(record);
            this.mListChanged(this, new EventArgs());
        }
    }
}
